package org.pupil.socket.codec;

import java.io.Serializable;

/**
 * @Description: 消息
 * @Author: pupil
 * @Date: 2024/07/07 下午 12:38
 */
public class RpcProtocol<T> implements Serializable {

    private MsgHeader msgHeader; // 消息头

    private T body; // 消息体

    public MsgHeader getMsgHeader() {
        return msgHeader;
    }

    public void setMsgHeader(MsgHeader msgHeader) {
        this.msgHeader = msgHeader;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }
}
